ConvertAll Generic Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Convert the list to a new list by applying a delegate to each item in the collection. The resulting list contains the result of applying converter to each item in the list, in order. The current list is unchanged.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public BigList<TDest> ConvertAll<TDest>(
	Converter<T, TDest> converter
)
Visual Basic (Declaration)
Public Function ConvertAll(Of TDest) ( _
	converter As Converter(Of T, TDest) _
) As BigList(Of TDest)
Visual C++
public:
generic<typename TDest>
BigList<TDest>^ ConvertAll (
	Converter<T, TDest>^ converter
)

Parameters

converter
Converter<(Of <T, TDest>)>
A delegate to the method to call, passing each item in .

Return Value

The resulting BigList from applying converter to each item in this list.

Type Parameters

TDest
The type each item is being converted to.

Exceptions

ExceptionCondition
System..::ArgumentNullExceptionconverter is null.

See Also